No need to spam about it.
https://bugzilla.gnome.org/show_bug.cgi?id=734140
GVariant *res;
GError *error = NULL;
guint cookie;
+ static gboolean warned = FALSE;
if (dbus->sm_proxy == NULL)
return 0;
if (error)
{
- g_warning ("Calling Inhibit failed: %s", error->message);
+ if (!warned)
+ {
+ g_warning ("Calling Inhibit failed: %s", error->message);
+ warned = TRUE;
+ }
g_error_free (error);
return 0;
}
GVariant *res;
GError *error = NULL;
gboolean inhibited;
+ static gboolean warned = FALSE;
if (dbus->sm_proxy == NULL)
return FALSE;
&error);
if (error)
{
- g_warning ("Calling IsInhibited failed: %s", error->message);
+ if (!warned)
+ {
+ g_warning ("Calling IsInhibited failed: %s", error->message);
+ warned = TRUE;
+ }
g_error_free (error);
return FALSE;
}